<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>{$title}</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">

    {php echo register_jssdk(false);}

    <link rel="stylesheet" href="{MOBILE_RES}css/vj-weui.css"/>
    <link rel="stylesheet" href="{MOBILE_RES}css/iconfont.css"/>
    <link rel="stylesheet" href="{MOBILE_RES}css/style.css"/>
    <script type="text/javascript" src="{$_W['siteroot']}app/index.php?i={$_W['uniacid']}&c=utility&a=visit&do=showjs&m={$_W['current_module']['name']}"></script>
    <script>
        var shareTitle = "{$share['share_title']}";
        var shareDesc = "{$share['share_description']}";
        var shareLink = "{$share['share_link']}";
        var shareImg = "{$share['share_img']}";

        initShare();

        function initShare() {
            wx.ready(function () {
                shareMeta = {
                    title: shareTitle,
                    desc: shareDesc,
                    link: shareLink,
                    imgUrl: shareImg,
                    success: function () {
                        console.log('success');
                    },
                    cancel: function () {
                        console.log('cancel');
                    }
                };
                wx.onMenuShareTimeline(shareMeta);
                wx.onMenuShareAppMessage(shareMeta);
                wx.onMenuShareWeibo(shareMeta);
                wx.onMenuShareQQ(shareMeta);
                wx.onMenuShareQZone(shareMeta);
            });

            wx.error(function(res){
                console.log(res);
            });
        }
    </script>
</head>
<body ontouchstart style="background-color:#f8f8f8">